from django.urls import path

from . import views


app_name = 'content'

urlpatterns = [
    path('<str:content_type>/', views.ShowingContent.as_view(), name='showing_content'),
    path('category/<str:content_type>/<str:object>/', views.ShowingObjectCategory.as_view(), name='showing_object_category'),
    path('detail/<str:content_type>/<str:object>/', views.ShowingObjectDetail.as_view(), name='showing_object_detail'),
    path('update/<str:content_type>/<str:object>/', views.UpdatingObject.as_view(), name='updating_object'),
    path('delete/<str:main_object>/<str:content_type>/<str:object>/',
         views.DeletingObject.as_view(),
         name='deleting_object'),

    path('add/group/<str:content_type>/', views.AddSomeGroup.as_view(), name='add_some_group'),

    path('add/additionally/<str:content_type>/<str:object>/',
         views.AddingAdditionalObject.as_view(),
         name='adding_additionall_object'),
    path('update/additionally/<str:type_of_main_object>/<str:main_object>/<str:content_type>/<str:object>/',
         views.UpdateAdditionalyObject.as_view(),
         name='updating_additional_object'),
    path('delete/additionally/<str:pk>/',
         views.DeletingAdditionalObject.as_view(),
         name='deleting_additional_object'),
]
